import Network from '@/utils/request'

// 获取组织架构全部信息
export const getDeparments = () => Network.get('/company/department')
// 删除部门
export const getDelDeparments = (id) => Network.delete(`/company/department/${id}`)
// 新增部门
export const addDepartments = (data) => Network.post('/company/department', data)
// 获取部门详情
export const getDepartDetail = (id) => Network.get(`/company/department/${id}`)
// 编辑接口
export const updateDepartments = (data) => Network.put(`/company/department/${data.id}`, data)
